FROM harbor.rjb.dgbc.net.cn/library/openjdk:8u312

ENV APP_NAME=braindata-web \
	DEBUG_PORT=50081

ADD target/*.jar /export/app/${APP_NAME}/${APP_NAME}.jar

WORKDIR /export/app/${APP_NAME}

COPY docker-entrypoint.sh .

EXPOSE 18081 50081

ENTRYPOINT ["bash", "docker-entrypoint.sh"]